import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// 创建pinia对象
import { createPinia } from 'pinia';
import persisted from 'pinia-plugin-persistedstate'
const pinia = createPinia();
pinia.use(persisted)
// 导入elementplus
import ElementPlus from 'element-plus';
// 导入element的样式
import 'element-plus/dist/index.css';

// 导入封装axios文件
import $axios from './utils/request';

createApp(App).use(router).use(ElementPlus).use(pinia).provide('$axios',$axios).mount('#app')
